portableSql

Count Portable SQL Function

Syntax

Count as N (Expression as N)

Count as N (*)

Arguments

ExpressionNumeric *

A numeric field, expression, or the value *. COUNT(*) will count all rows in the query.

Returns

resultNumeric

Returns the count of the rows that satisfy the expression or all rows (Count(*)).

Description

Compute the count of the rows that satisfy the expression or all rows Count(*).

Discussion

The Count function counts the rows that satisfy the expression or all rows returned by the query.

Count() function executed on the Northwind Access database: counts all rows in the Orders table.
SELECT Count(*) FROM Orders
=830